package top.snoweagle.simple.console.common.enums;

/**
 * Created by wangshaobo on 2015/10/20.
 */
public enum Restful {

    RESPONSE("response", "返回字段") ;


    // 成员变量
    private String code;
    private String desc;

    // 构造方法
    private Restful(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    //覆盖方法
    @Override
    public String toString() {
        return this.code + "_" + this.desc;
    }
}

